local function main(userOb, msgData)
    ---! todo： 兼容处理，日后移除
    if #msgData < 1 then
        msgData = { msgData }
    end

    local isbuff = 0
    local monster_ids = {}
    for _, data in ipairs(msgData) do
        table.insert(monster_ids, data.id)
        isbuff = msgData.isBuff
    end

    return STAGE_D:kill_monsters(userOb, monster_ids, isbuff or 0)
end

COMMAND_D:register_command("MSGC2SKillMonster", GameCmdType.NONE, main)
